<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo site_url('static/style/css/style.css');?>" />
<title>无标题文档</title>
</head>

<body>
<table width="95%" border="0" cellspacing="0">
  <tr>
    <td>
    <h3>用户列表</h3>
    <input type="button" value="添加用户"  onclick="window.location='<?php echo base_url('adminroot/users/add_user');?>'"/>
    </td>
  </tr>
  <tr>
    <td height="76" valign="top"><table width="100%" border="0" cellspacing="1" bgcolor="#CCCCCC">
      <tr align="center">
        <td  height="31" bgcolor="#999999">姓名字段</td>
        <td  bgcolor="#999999">Email</td>
        <td  bgcolor="#999999">头像图片</td>
        <td bgcolor="#999999">用户级别</td>
        <td  bgcolor="#999999">金币数量</td>
        <td  bgcolor="#999999">用户国家</td>
        <td  bgcolor="#999999">收货地址</td>
        <td  bgcolor="#999999">收款帐号</td>
        <td  bgcolor="#999999"></td>
      </tr>
      <?php foreach($list as $key => $value){ ?>
      <tr align="center">
        <td height="34" bgcolor="#FFFFFF"><?=$value->txusername?></td>
        <td bgcolor="#FFFFFF"><?=$value->txemail?></td>
        <td bgcolor="#FFFFFF"><?=$value->headpic?></td>
        <td bgcolor="#FFFFFF"><?=$value->gradename?></td>
        <td bgcolor="#FFFFFF"><?=$value->txgoldnum?></td>
        <td bgcolor="#FFFFFF"><?=$value->countryname?></td>
        <td bgcolor="#FFFFFF"><?=$value->txaddress?></td>
        <td bgcolor="#FFFFFF"><?=$value->txaccount?></td>      
        <td bgcolor="#FFFFFF">
        <?php if($value->enabled == 1){?><span style="color: #00CC00">正常<?php }?>
        <?php if($value->enabled == 0){?><span style="color: red">停用</span><?php }?>
        <a href="<?php echo base_url('adminroot/users/edit_user/id/'.$value->uid);?>">编辑</a>
        <a href="<?php echo base_url('adminroot/users/del_user/id/'.$value->uid);?>" onClick="javascript:delcfm();">删除</a></td>
      </tr>
      <?php } ?>
	  <tr>
        <td height="34" colspan="9" bgcolor="#FFFFFF"><?=$page?></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
